coding="utf-8"
Houzhui=r" 1 0 0 50 50" #后缀
filelist = open(r'C:\Users\Ke\PycharmProjects\pythonProject2\mask\have_mask.txt','r+',encoding = 'utf-8')
line = filelist.readlines()
for file in line:
    file=file.strip('\n')+Houzhui+'\n'
    print(file)
    filelist.write(file)